package com.micro.frog.job.service;

import com.micro.frog.core.annotations.ScheduleTask;
import com.micro.frog.core.common.Result;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

/**
 * @author :  ljh
 * @date : 2018/5/11
 **/
@Slf4j
@Service
public class ScheduleService {

    @ScheduleTask
    public Result execute(Object[] args) {
        Result result = Result.newResult();
        result.setFlag(true);
        result.setMsg("成功");
        return result;
//        throw new RuntimeException("主动抛出异常");
    }
}
